import service from "../../server/request";

export function getAllShop(data: any) {
  return service({
    url: "/shop/xyz",
    method: "get",
    params: data
  });
}

export function createShopByJwt(data: any) {
  return service({
    url: "/shop/jwt",
    method: "post",
    params: data
  });
}

//获取本人所有店铺
export function getShopByJwt(data: any) {
  return service({
    url: "/shop/jwt",
    method: "get",
    params: data
  });
}

export function getShopById(data: any) {
  return service({
    url: "/shop/id",
    method: "get",
    params: data
  });
}

export function deleteShopByIdAndJwt(data: any) {
  return service({
    url: "/shop/jwt/id",
    method: "delete",
    params: data
  });
}